package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TRechargeFlowMapper;
import com.ruoyi.platform.domain.TRechargeFlow;
import com.ruoyi.platform.service.ITRechargeFlowService;

/**
 * 充值流水Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
@Service
public class TRechargeFlowServiceImpl implements ITRechargeFlowService 
{
    @Autowired
    private TRechargeFlowMapper tRechargeFlowMapper;

    /**
     * 查询充值流水
     * 
     * @param flowId 充值流水主键
     * @return 充值流水
     */
    @Override
    public TRechargeFlow selectTRechargeFlowByFlowId(Long flowId)
    {
        return tRechargeFlowMapper.selectTRechargeFlowByFlowId(flowId);
    }

    /**
     * 查询充值流水列表
     * 
     * @param tRechargeFlow 充值流水
     * @return 充值流水
     */
    @Override
    public List<TRechargeFlow> selectTRechargeFlowList(TRechargeFlow tRechargeFlow)
    {
        return tRechargeFlowMapper.selectTRechargeFlowList(tRechargeFlow);
    }

    /**
     * 新增充值流水
     * 
     * @param tRechargeFlow 充值流水
     * @return 结果
     */
    @Override
    public int insertTRechargeFlow(TRechargeFlow tRechargeFlow)
    {
        return tRechargeFlowMapper.insertTRechargeFlow(tRechargeFlow);
    }

    /**
     * 修改充值流水
     * 
     * @param tRechargeFlow 充值流水
     * @return 结果
     */
    @Override
    public int updateTRechargeFlow(TRechargeFlow tRechargeFlow)
    {
        return tRechargeFlowMapper.updateTRechargeFlow(tRechargeFlow);
    }

    /**
     * 批量删除充值流水
     * 
     * @param flowIds 需要删除的充值流水主键
     * @return 结果
     */
    @Override
    public int deleteTRechargeFlowByFlowIds(Long[] flowIds)
    {
        return tRechargeFlowMapper.deleteTRechargeFlowByFlowIds(flowIds);
    }

    /**
     * 删除充值流水信息
     * 
     * @param flowId 充值流水主键
     * @return 结果
     */
    @Override
    public int deleteTRechargeFlowByFlowId(Long flowId)
    {
        return tRechargeFlowMapper.deleteTRechargeFlowByFlowId(flowId);
    }
}
